package com.tianma.upload.uploadjartest.poi;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.converters.string.StringImageConverter;
import lombok.Data;

import java.net.URL;
import java.util.Date;

/**
 * @author lgc
 * @createDate 2020/8/14 - 14:00
 */
@Data
@ContentRowHeight(25)
@HeadRowHeight(15)
@ColumnWidth(20)
public class DemoData {
    @ExcelProperty("字符串标题")
    private String string;
    @ExcelProperty("日期标题")
    private Date date;
    @ExcelProperty("数字标题")
    private Double doubleData;

    @ColumnWidth(30)
    @ExcelProperty("图片")
    private URL url;
    @ExcelIgnore
    private String ignore;
}
